package com.dream.service.impl;

import com.dream.dao.TempInformationDao;
import com.dream.dao.impl.TempInformationDaoImpl;
import com.dream.pojo.TempInformation;
import com.dream.service.TempInformationService;

import java.util.List;

public class TempInformationServiceImpl implements TempInformationService {
    TempInformationDao tempInformationDao = new TempInformationDaoImpl();
    @Override
    public long totalCount(String stuName, String minTemp, String maxTemp) {
        return tempInformationDao.totalCount(stuName,minTemp,maxTemp);
    }

    @Override
    public List<TempInformation> list(String stuName, String minTemp, String maxTemp, long pageIndex, long pageSize) {
        return tempInformationDao.list(stuName, minTemp, maxTemp, pageIndex, pageSize);
    }
}
